@ECHO OFF
SET STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm"
SET GACUTIL="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe"

ECHO Adding solution ...
%STSADM% -o addsolution -f ESPSearchWebParts.wsp
ECHO Deploying solutions ...
echo %STSADM% -allowGacDeployment -o deploysolution -n ESPSearchWebParts.wsp -local -url http://localhost %1
%STSADM% -allowGacDeployment -o deploysolution -n ESPSearchWebParts.wsp -local -url http://localhost %1

rem Not registering as global by default. As otherwise the debugging doesn't seem to work.....
rem Echo Installing dll in GAC to be able to develop and debug easier
rem %GACUTIL% -if C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin\Com.FastSearch.*.dll